Integrand size = 31, antiderivative size = 163 \[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=-\frac {2 (3 A+5 C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 B \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 (3 A+5 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d} \]
2/3*B*sec(d*x+c)^(3/2)*sin(d*x+c)/d+2/5*A*sec(d*x+c)^(5/2)*sin(d*x+c)/d+2/ 5*(3*A+5*C)*sin(d*x+c)*sec(d*x+c)^(1/2)/d-2/5*(3*A+5*C)*(cos(1/2*d*x+1/2*c )^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d* x+c)^(1/2)*sec(d*x+c)^(1/2)/d+2/3*B*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d *x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c )^(1/2)/d
Time = 1.19 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.69 \[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\frac {\sec ^{\frac {5}{2}}(c+d x) \left (-12 (3 A+5 C) \cos ^{\frac {5}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+20 B \cos ^{\frac {5}{2}}(c+d x) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+2 (15 (A+C)+10 B \cos (c+d x)+3 (3 A+5 C) \cos (2 (c+d x))) \sin (c+d x)\right )}{30 d} \]
(Sec[c + d*x]^(5/2)*(-12*(3*A + 5*C)*Cos[c + d*x]^(5/2)*EllipticE[(c + d*x )/2, 2] + 20*B*Cos[c + d*x]^(5/2)*EllipticF[(c + d*x)/2, 2] + 2*(15*(A + C ) + 10*B*Cos[c + d*x] + 3*(3*A + 5*C)*Cos[2*(c + d*x)])*Sin[c + d*x]))/(30 *d)
Time = 0.67 (sec) , antiderivative size = 142, normalized size of antiderivative = 0.87, number of steps used = 12, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.387, Rules used = {3042, 4709, 3042, 3500, 27, 3042, 3227, 3042, 3116, 3042, 3119, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sec ^{\frac {7}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sec (c+d x)^{7/2} \left (A+B \cos (c+d x)+C \cos (c+d x)^2\right )dx\) |
\(\Big \downarrow \) 4709 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {C \cos ^2(c+d x)+B \cos (c+d x)+A}{\cos ^{\frac {7}{2}}(c+d x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {C \sin \left (c+d x+\frac {\pi }{2}\right )^2+B \sin \left (c+d x+\frac {\pi }{2}\right )+A}{\sin \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx\) |
\(\Big \downarrow \) 3500 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {2}{5} \int \frac {5 B+(3 A+5 C) \cos (c+d x)}{2 \cos ^{\frac {5}{2}}(c+d x)}dx+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \int \frac {5 B+(3 A+5 C) \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x)}dx+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \int \frac {5 B+(3 A+5 C) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}}dx+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \left ((3 A+5 C) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)}dx+5 B \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x)}dx\right )+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \left ((3 A+5 C) \int \frac {1}{\sin \left (c+d x+\frac {\pi }{2}\right )^{3/2}}dx+5 B \int \frac {1}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}}dx\right )+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3116 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \left ((3 A+5 C) \left (\frac {2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\int \sqrt {\cos (c+d x)}dx\right )+5 B \left (\frac {1}{3} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \left ((3 A+5 C) \left (\frac {2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx\right )+5 B \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \left (5 B \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\right )+(3 A+5 C) \left (\frac {2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}\right )\right )+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} \left ((3 A+5 C) \left (\frac {2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}\right )+5 B \left (\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 A \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\right )\) |
Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*((2*A*Sin[c + d*x])/(5*d*Cos[c + d*x ]^(5/2)) + (5*B*((2*EllipticF[(c + d*x)/2, 2])/(3*d) + (2*Sin[c + d*x])/(3 *d*Cos[c + d*x]^(3/2))) + (3*A + 5*C)*((-2*EllipticE[(c + d*x)/2, 2])/d + (2*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]])))/5)
3.13.60.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*(( b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1))), x] + Simp[(n + 2)/(b^2*(n + 1)) I nt[(b*Sin[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1] && IntegerQ[2*n]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-(A*b^2 - a*b*B + a^2*C))*Cos[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 1)* (a^2 - b^2))), x] + Simp[1/(b*(m + 1)*(a^2 - b^2)) Int[(a + b*Sin[e + f*x ])^(m + 1)*Simp[b*(a*A - b*B + a*C)*(m + 1) - (A*b^2 - a*b*B + a^2*C + b*(A *b - a*B + b*C)*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C}, x] && LtQ[m, -1] && NeQ[a^2 - b^2, 0]
Int[(u_)*((c_.)*sec[(a_.) + (b_.)*(x_)])^(m_.), x_Symbol] :> Simp[(c*Sec[a + b*x])^m*(c*Cos[a + b*x])^m Int[ActivateTrig[u]/(c*Cos[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSineIntegrandQ[u, x]
Leaf count of result is larger than twice the leaf count of optimal. \(754\) vs. \(2(191)=382\).
Time = 47.35 (sec) , antiderivative size = 755, normalized size of antiderivative = 4.63
method | result | size |
parts | \(\text {Expression too large to display}\) | \(755\) |
default | \(\text {Expression too large to display}\) | \(799\) |
-2/5*A*(-(-2*cos(1/2*d*x+1/2*c)^2+1)*sin(1/2*d*x+1/2*c)^2)^(1/2)/(8*sin(1/ 2*d*x+1/2*c)^6-12*sin(1/2*d*x+1/2*c)^4+6*sin(1/2*d*x+1/2*c)^2-1)/sin(1/2*d *x+1/2*c)^3*(24*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^6-12*(2*sin(1/2*d*x+ 1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c ),2^(1/2))*sin(1/2*d*x+1/2*c)^4-24*sin(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c) +12*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*Elliptic E(cos(1/2*d*x+1/2*c),2^(1/2))*sin(1/2*d*x+1/2*c)^2+8*sin(1/2*d*x+1/2*c)^2* cos(1/2*d*x+1/2*c)-3*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2- 1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)))*(-2*sin(1/2*d*x+1/2*c)^4+s in(1/2*d*x+1/2*c)^2)^(1/2)/(-1+2*cos(1/2*d*x+1/2*c)^2)^(1/2)/d-2/3*B*(-2*( sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos (1/2*d*x+1/2*c),2^(1/2))*sin(1/2*d*x+1/2*c)^2-2*sin(1/2*d*x+1/2*c)^2*cos(1 /2*d*x+1/2*c)+(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2 )*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2)))*((-1+2*cos(1/2*d*x+1/2*c)^2)*sin( 1/2*d*x+1/2*c)^2)^(1/2)/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/ 2)/(-1+2*cos(1/2*d*x+1/2*c)^2)^(3/2)/sin(1/2*d*x+1/2*c)/d-2*C*(-2*(-2*sin( 1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*cos(1/2*d*x+1/2*c)*sin(1/2*d* x+1/2*c)^2+(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*( -2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticE(cos(1/2*d*x+ 1/2*c),2^(1/2)))/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/s...
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 206, normalized size of antiderivative = 1.26 \[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\frac {-5 i \, \sqrt {2} B \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 i \, \sqrt {2} B \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 \, \sqrt {2} {\left (3 i \, A + 5 i \, C\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 \, \sqrt {2} {\left (-3 i \, A - 5 i \, C\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + \frac {2 \, {\left (3 \, {\left (3 \, A + 5 \, C\right )} \cos \left (d x + c\right )^{2} + 5 \, B \cos \left (d x + c\right ) + 3 \, A\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, d \cos \left (d x + c\right )^{2}} \]
1/15*(-5*I*sqrt(2)*B*cos(d*x + c)^2*weierstrassPInverse(-4, 0, cos(d*x + c ) + I*sin(d*x + c)) + 5*I*sqrt(2)*B*cos(d*x + c)^2*weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) - 3*sqrt(2)*(3*I*A + 5*I*C)*cos(d*x + c )^2*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin (d*x + c))) - 3*sqrt(2)*(-3*I*A - 5*I*C)*cos(d*x + c)^2*weierstrassZeta(-4 , 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))) + 2*(3*(3* A + 5*C)*cos(d*x + c)^2 + 5*B*cos(d*x + c) + 3*A)*sin(d*x + c)/sqrt(cos(d* x + c)))/(d*cos(d*x + c)^2)
Timed out. \[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\text {Timed out} \]
\[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {7}{2}} \,d x } \]
\[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {7}{2}} \,d x } \]
Timed out. \[ \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\int {\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right ) \,d x \]